<?php

$menuIndex = 0 ;

class Menu{
	var $id ;
	var $name ;
	var $url ;
	var $icon ;
	var $focus = false ;
	var $attributes = array();

	var $children = array();

	function Menu($id,$name,$url){
		$this->id = $id ;
		$this->name = $name ;
		$this->url = $url ;
	}

	function addChild($child){
		array_push($this->children,$child) ;
	}

	function setId($id){
		$this->id = $id ;
	}

	function getId(){
		return $this->id ;
	}

	function getName(){
		return $this->name ;
	}

	function getUrl(){
		return $this->url ;
	}

	function setAttribute($name,$value){
		$this->attributes[$name] = $value ;
	}

	function getAttribute($name){
		return $this->attributes[$name] ;
	}

	function setFocus($focus){
		$this->focus = $focus;
	}

	function getFocus(){
		return $this->focus ;
	}
}

?>